<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link type="text/css" href="/css/start/jquery-ui-1.8.21.custom.css" rel="Stylesheet" />	
<link type="text/css" href="/css/1pxtable.css" rel="Stylesheet" />	
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script>
	$(function() {
		$( "#date_before" ).datepicker({ dateFormat: "yy-mm-dd"});
	});
</script>

</head>
<body>
<?php if(!$this->errorFlag){?>

<h1>Warehouse stock Check</h1>
<form method = 'post' action = '' enctype="multipart/form-data">
<table border="1" cellspacing="0" cellpadding="15">
	<tr>
		<td>Check Z Position Items</td>
		<td>New Product Read GN</td>
		<td>Check stock</td>
		<td>4 Weeks Check</td>
		<td>Check Total No Position Items</td>
	</tr>
	
	<tr>
		<td>&nbsp</td>
		<td>GN: <input type = 'text' name = 'gn_no' id = 'gn_no'></input></td>
		<td>&nbsp</td>
		<td>&nbsp</td>
		<td>GN 7 Days Before:<input name="date_before" id="date_before" type="text"></input></td>
	</tr>
	
	<tr>
		<td rowspan = '2' ><input type = 'submit' name = 'z_position' id = 'z_positon' value = 'Check Z Position Items'></input></td>
		<td><input type = 'submit' name = 'read_gn' id = 'read_gn' value = 'Read GN'></input></td>
		<td><input type = 'submit' name = 'read_stock' id = 'read_stock' value = 'Read Stock'></input></td>
		<td><input type = 'submit' name = 'not_zlist' id = 'not_zlist' value = 'Check Order'></input></td>
		<td><input type = 'submit' name = 'check_total' id = 'check_total' value = 'Check Total'></input></td>
		
	</tr>
	


</table>

</form>
<?php }
?>
<?php if($this->errorFlag){?>
<table width="500" border="0" cellspacing="0" cellpadding="10" align="center" style="border:#603 1px solid;">
  <tr>
		<td align="center" bgcolor="#FEDADD"><?=$this->errorMessage ?></td>
		<td><a href="javascript:history.go(-1)">Back to last page</a></td>
		  </tr>
</table>
<?php }?>
</body>
</html>
